package ch.selise.exercise.pattern.notepad.command;

import ch.selise.exercise.pattern.notepad.exception.ExecuteException;

public abstract class BaseCommand implements IUndoableCommand {
	private int index;
	private String text;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public void redoCommand() throws ExecuteException {
		this.execute();

	}

}
